//******************************************************//
//														//
//					Factura.java						//
//														//
//******************************************************//


package Misc;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.Hashtable;
import java.util.Scanner;

import Actores.Cliente;
import Actores.Telefonia;
import Actores.Vendedor;

public abstract class Factura {
	private Integer idFactura;	     
    private Calendar 	fechaEmision;
	protected Calendar fechaPago;     
    private Cliente cliente;
    
    
    // Constructor ===================================
    
    public Factura(Integer id, Cliente c) {
        idFactura = id;               
        fechaEmision = Calendar.getInstance();        
        fechaPago = null;
        cliente = c;        
    }

    // Setters ========================================  

    public void setFechaPago(Calendar d) {
        fechaPago = d;
    }    

    // Getters ========================================

    public long getID() {
        return idFactura;
    }    

    // Otras funciones ================================   
    
    
    public boolean estaPagada() {
    	return (fechaPago!=null);
    }    
    
    public String toString() {    	
    	return  "\nID Factura: "+ idFactura +                 
                "\nFecha emision: " + fechaEmision.getTime().toString(); 
    }  
    
    public boolean sos(Integer id) {
        return idFactura == id;
    } 	

}